#
# Copyright (c) 2022 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

if (CONFIG_LVGL)

    if (CONFIG_GUI_TEST_ENABLED)

        FILE(GLOB test_resources test/*.c)
        target_sources(app PRIVATE ${test_resources})

    else()


    endif()


    FILE(GLOB img_resources resources/*.c)
    target_sources(app PRIVATE ${img_resources})

    target_sources(app PRIVATE 
            ${CMAKE_CURRENT_SOURCE_DIR}/ui_main.c
            ${CMAKE_CURRENT_SOURCE_DIR}/port/lv_port_indev.c
        )

endif()


zephyr_library_include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/port
    ${CMAKE_CURRENT_SOURCE_DIR}/resources
    ${CMAKE_CURRENT_SOURCE_DIR}/test
)
